Logo: Relish

  1. Sign in

Project: Jasmine-maven-plugin

setting a custom character encoding

In order to supply a particular encoding for my specs
I want control over the charset of the generated runner files

Scenarios
setting a custom character encoding
Given
I am currently in the "jasmine-webapp-custom-encoding" project
When
I run "mvn clean test"
Then
the build should succeed
And
the file "target/jasmine/SpecRunner.html" should contain "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=LOL\">"
And
the file "target/jasmine/ManualSpecRunner.html" should contain "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=LOL\">"
leaving the default character encoding
Given
I am currently in the "jasmine-webapp-passing" project
When
I run "mvn clean test"
Then
the build should succeed
And
the file "target/jasmine/SpecRunner.html" should contain "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">"
And
the file "target/jasmine/ManualSpecRunner.html" should contain "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">"

Last published over 5 years ago by searls.