Comments (8)
Thanks for the report!
I'm super sorry for the late reply. Work was hectic!
I'll start digging into this soon as I can.
from tap-junit.
No worries, meanwhile I can use a workaround to report without failing the CI:
pg_prove --ext .sql -v test | tee out.tap
cat out.tap | npx tap-junit -o junit || true
grep -q 'All tests successful' out.tap
from tap-junit.
@villelahdenvuo So, is that 4th ok
at the end always there? The problem is that the parser is reading that as a 4th test, which I'm assuming it shouldn't be because it looks like the test count is 3.
If so, I'll have to think up a snazzy method to counter this problem since I can't just mark empty oks to be ignored.
from tap-junit.
@dhershman1 Seems like pgTAP always add the final ok
. Maybe a CLI option to allow a final empty ok
?
Edit: Looks like pg_prove actually prints the extra ok as it's supposed to print filename.....ok
but the test results get in the middle. I will see if I can fix it with some arguments.
from tap-junit.
If it printed off the filename...ok
I think you'd be good, that is causing a miscount of your tests, tap thinks you have 4 tests and is only expecting 3.
from tap-junit.
t/group.sql ....... ok
t/logging.sql ..... ok
t/rls_admin.sql ... ok
t/rls_normal.sql .. ok
t/security.sql .... ok
t/service.sql ..... ok
t/user.sql ........ ok
t/utils.sql ....... ok
All tests successful.
This is the output without --verbose and here it is with --verbose:
...
ok 23 - find_user_by_email_in_user_pools should find user in multiple user pools
ok
t/utils.sql .......
1..3
ok 1 - slugify function test 1
ok 2 - slugify function test 2
ok 3 - slugify function test 3
ok
All tests successful.
So the problem indeed is in the output format of pg_prove. I didn't find any command line option for it to not output extra ok for each file. I guess I will just keep my workaround. You can close this issue if you want.
from tap-junit.
Though it may be against convention, I can see about adding an option like --expect-hanging-ok
or something to account for this.
It may not be great but the more outputs tap-junit can support the more helpful it can be!
from tap-junit.
If you can implement something like that it would be great, but the workaround has been working fine so it's not a big issue for us. Thanks for everything!
from tap-junit.
Related Issues (20)
- Remove usage API HOT 1
- add to tape reporters list HOT 3
- Quest to Limit Dependencies
- Add Version Option HOT 2
- Docker Container HOT 5
- Show Error Output HOT 2
- Allow Specification of Input File Name on Command Line HOT 2
- Influence Test Suite Name HOT 4
- Error on 'not ok' HOT 6
- (v3.0.2) BATS output not handled properly HOT 21
- Add ability to specify file extensions HOT 5
- npm audit warning on use of minimist HOT 1
- 3.1.1 strangeness when installed with yarn instead of npm HOT 7
- Missing YAML blocks in the output HOT 6
- v4 output results in NullPointerException when used in Jenkins HOT 4
- Error message is not captured from ava tap report HOT 5
- Tap Comment Output is not valid according to Junit schema HOT 3
- unexpected undefined failure message in output HOT 8
- SKIP produces an empty JUnit output HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tap-junit.