exercism / swift-test-runner

GNU Affero General Public License v3.0
0 stars 8 forks source link

Fix test runner #22

Closed 2Grey closed 3 years ago

2Grey commented 3 years ago

Fixes for #21

Runs

Direct launch of TestRunner

./bin/TestRunner --slug freelancer-rates --solution-directory ./freelancer-rates --output-directory ./Out --swift-location $(which swift) --build-directory "/tmp"

Result

{
    "status" : "pass",
    "tests" : [
        {
            "name" : "FreelancerRatesTests.FreelancerRatesTests testdailyRateFrom",
            "status" : "pass"
        }
    ]
}

Script run of TestRunner

./bin/run.sh freelancer-rates ./freelancer-rates ./Out

Result

{
  "status" : "pass",
  "tests" : [
    {
      "name" : "FreelancerRatesTests.FreelancerRatesTests testdailyRateFrom",
      "status" : "pass"
    },
    {
      "name" : "FreelancerRatesTests.FreelancerRatesTests testmonthlyRoundDown",
      "status" : "pass"
    },
    {
      "name" : "FreelancerRatesTests.FreelancerRatesTests testmonthlyRoundUp",
      "status" : "pass"
    },
    {
      "name" : "FreelancerRatesTests.FreelancerRatesTests testworkdaysIn",
      "status" : "pass"
    },
    {
      "name" : "FreelancerRatesTests.FreelancerRatesTests testworkdaysShouldRoundDown",
      "status" : "pass"
    }
  ]
}
freelancer-rates: comparing ./Out/results
diff: ./freelancer-rates/freelancer-rates/results.json: No such file or directory
iHiD commented 3 years ago

Thanks @2Grey :)

@ErikSchierboom will take a look at this on Tuesday if no-one else gets to it first!

ErikSchierboom commented 3 years ago

Let me know if there is anything you want to know about the commits I added.