Giter Site home page Giter Site logo

Comments (5)

toote avatar toote commented on August 22, 2024 1

Note that we have implemented your suggestion (in #46) and released 1.7.0 with the new functionality :)

from test-collector-buildkite-plugin.

nate-thirdwave avatar nate-thirdwave commented on August 22, 2024

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.

toote avatar toote commented on August 22, 2024

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.

logan-han avatar logan-han commented on August 22, 2024

@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.

toote avatar toote commented on August 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.