> > This looks reasonable. But why haven't we seen this before now?
>
> In particular, the test (as it was originally) passes when I run this locally
> on my Vivid machine, but fails on Jenkins. Why?
Maybe a new version of JsonCpp? My version is "0.6.0~rc2-3.1ubuntu1".
Here's the output when I run the test on my Vivid machine:
[==========] Running 3 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 3 tests from JsonSettingsSchema
[ RUN ] JsonSettingsSchema.basic
unknown file: Failure
C++ exception with description "unity::ResourceException: JsonSettingsSchema(): expected value of type object for "parameters", id = "string_no_default2"" thrown in the test body.
[ FAILED ] JsonSettingsSchema.basic (1 ms)
[ RUN ] JsonSettingsSchema.exceptions
/home/marcustomlinson/Projects/work/unity-scopes-api/lp-1410125/test/gtest/scopes/internal/JsonSettingsSchema/JsonSettingsSchema_test.cpp:461: Failure
Value of: e.what()
Actual: "unity::ResourceException: JsonSettingsSchema(): expected value of type object for \"parameters\", id = \"x\""
Expected: "unity::ResourceException: JsonSettingsSchema(): missing \"parameters\" definition, id = \"x\""
[ FAILED ] JsonSettingsSchema.exceptions (1 ms)
[ RUN ] JsonSettingsSchema.empty_then_with_location
[ OK ] JsonSettingsSchema.empty_then_with_location (1 ms)
[----------] 3 tests from JsonSettingsSchema (3 ms total)
[----------] Global test environment tear-down
[==========] 3 tests from 1 test case ran. (4 ms total)
[ PASSED ] 1 test.
[ FAILED ] 2 tests, listed below:
[ FAILED ] JsonSettingsSchema.basic
[ FAILED ] JsonSettingsSchema.exceptions
> > This looks reasonable. But why haven't we seen this before now?
>
> In particular, the test (as it was originally) passes when I run this locally
> on my Vivid machine, but fails on Jenkins. Why?
Maybe a new version of JsonCpp? My version is "0.6.0~ rc2-3.1ubuntu1" .
Here's the output when I run the test on my Vivid machine:
[==========] Running 3 tests from 1 test case. ema.basic :ResourceExcept ion: JsonSettingsSch ema(): expected value of type object for "parameters", id = "string_ no_default2" " thrown in the test body. ema.basic (1 ms) ema.exceptions linson/ Projects/ work/unity- scopes- api/lp- 1410125/ test/gtest/ scopes/ internal/ JsonSettingsSch ema/JsonSetting sSchema_ test.cpp: 461: Failure :ResourceExcept ion: JsonSettingsSch ema(): expected value of type object for \"parameters\", id = \"x\"" :ResourceExcept ion: JsonSettingsSch ema(): missing \"parameters\" definition, id = \"x\"" ema.exceptions (1 ms) ema.empty_ then_with_ location ema.empty_ then_with_ location (1 ms)
[----------] Global test environment set-up.
[----------] 3 tests from JsonSettingsSchema
[ RUN ] JsonSettingsSch
unknown file: Failure
C++ exception with description "unity:
[ FAILED ] JsonSettingsSch
[ RUN ] JsonSettingsSch
/home/marcustom
Value of: e.what()
Actual: "unity:
Expected: "unity:
[ FAILED ] JsonSettingsSch
[ RUN ] JsonSettingsSch
[ OK ] JsonSettingsSch
[----------] 3 tests from JsonSettingsSchema (3 ms total)
[----------] Global test environment tear-down ema.basic ema.exceptions
[==========] 3 tests from 1 test case ran. (4 ms total)
[ PASSED ] 1 test.
[ FAILED ] 2 tests, listed below:
[ FAILED ] JsonSettingsSch
[ FAILED ] JsonSettingsSch
2 FAILED TESTS