allanwalpy / 01-19-vacancy-task-1

some simple task implementation, nothing to see
MIT License
0 stars 0 forks source link

windows tests takes too long execute time #24

Closed allanwalpy closed 5 years ago

allanwalpy commented 5 years ago

my notebook (ubuntu) ~4 minutes; travis linux (ubuntu) ~4 minutes; travis windows > 1 hour; appveyor windows > 1 hour;

vulmy/server doesn't have such dramatic difference between platforms tests, but it doesn't uses EF Core In Memory Database;

suggestion: using EF Core In Memory Database and for each test have ~35 actions (33-34 add request to populate database and 1 testing request) may be the cause:

allanwalpy commented 5 years ago

Solution suggestions

allanwalpy commented 5 years ago

Codename platform dependable database;

Briefly: use real database in windows only test;

allanwalpy commented 5 years ago

Codename tests downgrade

downgrade tests - lower their quantity;

allanwalpy commented 5 years ago

Codename test downgrade on environment windows

downgrade test only for windows appveyor using environment variables;

allanwalpy commented 5 years ago

done - https://ci.appveyor.com/project/allan-walpy/01-19-vacancy-task-1/builds/22256607 see https://github.com/allan-walpy/01-19-vacancy-task-1/issues/24#issuecomment-462128788