Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(timepicker): added test plan #2127

Merged
merged 1 commit into from
Jul 14, 2017
Merged

feat(timepicker): added test plan #2127

merged 1 commit into from
Jul 14, 2017

Conversation

artemvfrolov
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented Jun 26, 2017

Codecov Report

Merging #2127 into feat-timepicker will decrease coverage by 44.18%.
The diff coverage is 0%.

Impacted file tree graph

@@                 Coverage Diff                  @@
##           feat-timepicker    #2127       +/-   ##
====================================================
- Coverage            86.15%   41.97%   -44.19%     
====================================================
  Files                   94       95        +1     
  Lines                 2666     2623       -43     
  Branches               359      347       -12     
====================================================
- Hits                  2297     1101     -1196     
- Misses                 243     1516     +1273     
+ Partials               126        6      -120
Impacted Files Coverage Δ
src/timepicker/reducer/timepicker.reducer.ts 23.33% <0%> (-36.67%) ⬇️
src/utils/triggers.ts 10.71% <0%> (-85.72%) ⬇️
src/spec/ng-bootstrap/test/common.ts 6.45% <0%> (-83.88%) ⬇️
src/utils/linked-list.class.ts 12.58% <0%> (-79.48%) ⬇️
scripts/helpers.ts 25% <0%> (-75%) ⬇️
src/component-loader/component-loader.class.ts 17.7% <0%> (-72.92%) ⬇️
scripts/matchers.ts 33.33% <0%> (-66.67%) ⬇️
src/carousel/carousel.component.ts 25.92% <0%> (-65.75%) ⬇️
src/tabs/tabset.component.ts 26.98% <0%> (-63.5%) ⬇️
src/collapse/collapse.directive.ts 34.78% <0%> (-63.05%) ⬇️
... and 60 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7e80486...30ec945. Read the comment docs.

}

describe('Runtime coverage. Utils: Timepicker', () => {
it('should is no value', () => {

This comment was marked as off-topic.

return fixture.debugElement.queryAll(By.css(selector));
}

function testTime(hours?: number, minutes?: number, seconds?: number) {

This comment was marked as off-topic.


it('should changeHours', () => {
context.changeHours(3);
// поле часы и минуты отображаются

This comment was marked as off-topic.

This comment was marked as off-topic.

// проверить данные в поле минуты корректные данные с неполным значением
it('should validate the data in the minutes input with valid data with half value', () => {
component.writeValue(testTime(0,2,0));
fixture.detectChanges();

This comment was marked as off-topic.

@SergeyKuryatnick
Copy link
Contributor

Try not to use fixture.detectChanges() in all tests, only if it necessary :)

@SergeyKuryatnick
Copy link
Contributor

Tests are failed. recheck pls.

@valorkin valorkin merged commit a2bc188 into feat-timepicker Jul 14, 2017
@valorkin valorkin deleted the test-plan branch July 14, 2017 12:52
valorkin added a commit that referenced this pull request Jul 19, 2017
fixes #2036
fixes #1981 ( + min max demo )
fixes #1973
close #1957 ( + seconds demo )
fixes #1935
fixes #1672
feat #1007 added keyboard and mousewheel support
fixes #962
fixes #793
fixes #173
fixes #1271 added custom validation demo
fixes #1539 bs4
fixes #1253 if input is invalid

* feat(timepicker): new timepicker implementation

* feat(timepicker): new timepicker implementation testing

* chore(timepicker): removed old timepicker implementation

* chore(mini-ngrx): added ngrx licence

* fix(timepicker): fix seconds

* fix(timepicker): fix custom validation demo

* fix(tests): fix tests & aot errors

* fix(timepicker): min max restrictions

* fix(timepicker): min max checks

* feat(timepicker): add inputs validation (#2187)

* feat(timepicker): add inputs validation

* fix(timepicker): add isPM support

* feat(timepicker): add isValid output

* feat(timepicker): added test plan (#2127)

* fix(timepicker): fix ngModelChange demo

* fix(test): fix unit tests

* docs(timepicker): fix docs conflict, add isValid description
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants