Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Actions: Integration tests using bats #1213

Merged
merged 1 commit into from
Mar 1, 2021

Conversation

SMillerDev
Copy link
Contributor

Do integration tests in bats instead of just running a script

Signed-off-by: Sean Molenaar sean@seanmolenaar.eu

@SMillerDev SMillerDev force-pushed the feature/actions/bats_tests branch 2 times, most recently from a6673ff to 122955e Compare March 1, 2021 19:30
Copy link
Contributor

@anoymouserver anoymouserver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to my unknowing eye. Nice sumarized output ..

Maybe unify the indentations in the .bats (mixed 2 and 4 spaces) and reference the used style in the .editorconfig in the root (if you're using VSCode you could install the matching extension)

@codecov-io
Copy link

codecov-io commented Mar 1, 2021

Codecov Report

Merging #1213 (1e69c40) into master (43deed2) will increase coverage by 0.08%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #1213      +/-   ##
============================================
+ Coverage     87.07%   87.16%   +0.08%     
- Complexity      691      693       +2     
============================================
  Files            60       60              
  Lines          2492     2485       -7     
============================================
- Hits           2170     2166       -4     
+ Misses          322      319       -3     
Impacted Files Coverage Δ Complexity Δ
lib/Command/Config/FolderAdd.php 100.00% <100.00%> (ø) 4.00 <0.00> (ø)
lib/Fetcher/FeedFetcher.php 88.23% <0.00%> (-0.18%) 36.00% <0.00%> (ø%)
lib/Db/ItemMapperV2.php 100.00% <0.00%> (ø) 53.00% <0.00%> (+2.00%)
lib/Service/FeedServiceV2.php 100.00% <0.00%> (ø) 28.00% <0.00%> (ø%)
lib/Command/Debug/ItemList.php 0.00% <0.00%> (ø) 6.00% <0.00%> (ø%)
lib/Command/Debug/FeedItemList.php 0.00% <0.00%> (ø) 6.00% <0.00%> (ø%)
lib/Command/Debug/FolderItemList.php 0.00% <0.00%> (ø) 8.00% <0.00%> (ø%)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 43deed2...1e69c40. Read the comment docs.

Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
@SMillerDev SMillerDev merged commit bcdeb55 into nextcloud:master Mar 1, 2021
@SMillerDev SMillerDev deleted the feature/actions/bats_tests branch March 1, 2021 20:13
Grotax added a commit that referenced this pull request Apr 3, 2021
Changed
- Add BATS as integration tests (#1213)
- Update FeedFetcher to import categories from feeds (#1248)
- Update serialization of item to include categories (#1248)
- Make PHPStan stricter (#955)
- Search: Add folder search (#1215)
- Improve test coverage (#1263)
- Allow directly adding a feed without going through the discovery process (#1265)

Fixed
- Do not show deleted feeds in item list (#1214)
- Fix update queries (#1211)
@Grotax Grotax mentioned this pull request Apr 3, 2021
Grotax added a commit that referenced this pull request Apr 3, 2021
Changed
- Add BATS as integration tests (#1213)
- Update FeedFetcher to import categories from feeds (#1248)
- Update serialization of item to include categories (#1248)
- Make PHPStan stricter (#955)
- Search: Add folder search (#1215)
- Improve test coverage (#1263)
- Allow directly adding a feed without going through the discovery process (#1265)

Fixed
- Do not show deleted feeds in item list (#1214)
- Fix update queries (#1211)

Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
Grotax added a commit that referenced this pull request Apr 3, 2021
Changed
- Add BATS as integration tests (#1213)
- Update FeedFetcher to import categories from feeds (#1248)
- Update serialization of item to include categories (#1248)
- Make PHPStan stricter (#955)
- Search: Add folder search (#1215)
- Improve test coverage (#1263)
- Allow directly adding a feed without going through the discovery process (#1265)

Fixed
- Do not show deleted feeds in item list (#1214)
- Fix update queries (#1211)

Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
Neo11 pushed a commit to Neo11/news that referenced this pull request May 28, 2022
Changed
- Add BATS as integration tests (nextcloud#1213)
- Update FeedFetcher to import categories from feeds (nextcloud#1248)
- Update serialization of item to include categories (nextcloud#1248)
- Make PHPStan stricter (nextcloud#955)
- Search: Add folder search (nextcloud#1215)
- Improve test coverage (nextcloud#1263)
- Allow directly adding a feed without going through the discovery process (nextcloud#1265)

Fixed
- Do not show deleted feeds in item list (nextcloud#1214)
- Fix update queries (nextcloud#1211)

Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants