Comments (5)
Note that we have implemented your suggestion (in #46) and released 1.7.0 with the new functionality :)
from test-collector-buildkite-plugin.
Looking at the implementation, I think the straightforward approach would be to extend the base-path
to accept multiple entries. The underlying call to find
supports multiple starting points so the logic update would be minimal.
from test-collector-buildkite-plugin.
hi @logan-han , that is indeed a weird behaviour.
From what I understand you are downloading artifacts from 2 different paths: FOLDER_1/build/test-results/test
and FOLDER_2/build/test-results/integrationTest
. You then use the plugin in a step as follows:
- command: true
plugins:
- artifacts#v1.5.0:
download: [ "*/build/test-results/test/TEST-*.xml", "*/build/test-results/integrationTest/TEST-*.xml" ]
- test-collector#v1.6.0:
files: "*/build/test-results/test/*/TEST-*.xml"
If that is the case, my tests show that it should work as expected:
$ mkdir -p FOLDER_1/test-results/test/
$ mkdir -p FOLDER_2/test-results/integrationTests/
$ touch FOLDER_2/test-results/integrationTests/file1.xml
$ touch FOLDER_2/test-results/integrationTests/file2.xml
$ touch FOLDER_1/test-results/test/file2.xml
$ touch FOLDER_1/test-results/test/file1.xml
$ find . -path './*/test-results/*/*.xml'
./FOLDER_2/test-results/integrationTests/file2.xml
./FOLDER_2/test-results/integrationTests/file1.xml
./FOLDER_1/test-results/test/file2.xml
./FOLDER_1/test-results/test/file1.xml
Or did I misinterpret any part of your scenario?
from test-collector-buildkite-plugin.
@toote tried again & it worked out but still it's a good thing to support multiple entries for files in case of using completely different path pattern.
from test-collector-buildkite-plugin.
Makes sense... let me know if that is something you want to try to create a PR on
In the meantime, as a workaround and if you can't or won't generalize the file pattern, you can also just add the plugin to the step twice and get the same effect the following way:
- command: true
plugins:
- artifacts#v1.5.0:
download: [ "*/build/test-results/test/TEST-*.xml", "*/build/test-results/integrationTest/TEST-*.xml" ]
- test-collector#v1.6.0:
files: "*/build/test-results/test/TEST-*.xml"
- test-collector#v1.6.0:
files: "*/build/test-results/integrationTest/TEST-*.xml"
from test-collector-buildkite-plugin.
Related Issues (18)
- Hook error disguises previous build error HOT 1
- readarray in the pre-exit hook doesn't work on Amazon Linux 2.
- path which includes symlink won't find any files
- Support configurable API endpoint URL for debugging purposes
- Hook error disguises previous build error (not fixed) HOT 3
- Support soft failures HOT 6
- Support absolute paths HOT 1
- Too slow when there are many tests HOT 6
- missing-error ENV flag does not appear to be respected HOT 2
- Nested JUnit testsuite causes duplication HOT 5
- Annotation printing `\n` instead of newlines HOT 1
- Performance of test-collector is unacceptably slow. HOT 2
- error parsing report url
- If multiple steps use the plugin the step that runs last will be the only context reported.
- Messages with parentheses do not get reported correctly
- Unexpected output in logs
- Dependency Dashboard
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 test-collector-buildkite-plugin.