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

test: creating mcdc tests to valid_schedule method #225

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

fsousac
Copy link

@fsousac fsousac commented Jul 22, 2024

Descrição

Foram criados testes Caixa-Branca aplicando o método MC/DC para a função _valid_shedule da classe ScheduleGenerator. Mais informações sobre o processo de análise do método estão em: https://docs.google.com/document/d/1Dp4Vk2WQxf1OHqQzAdzDXzwWVw8y5FUK0m_ImMqvOi0/edit?usp=sharing

Tipo de alteração

  • Bug fix (alteração que corrige um problema)
  • New feature (alteração que adiciona funcionalidade)
  • Breaking change (correção ou funcionalidade que altera o comportamento de outras partes do sistema de maneira significativa)
  • Documentation update (alteração na documentação)

Como isso foi testado?

  • Teste A
  • Teste B

Checklist

  • Meu código segue as diretrizes de contribuição deste projeto
  • Realizei uma revisão pessoal do meu código
  • Comentei meu código, especialmente em áreas de difícil compreensão
  • Fiz alterações correspondentes na documentação
  • Minhas alterações não geram novos warnings ou erros
  • Adicionei testes que comprovam que minha correção é eficaz ou que minha funcionalidade está funcionando corretamente
  • Todos os testes unitários novos e existentes passam localmente com minhas alterações

Copy link

vercel bot commented Jul 22, 2024

@fsousac is attempting to deploy a commit to the Sua Grade UnB Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

codeclimate bot commented Jul 22, 2024

Code Climate has analyzed commit 927f3cb and detected 0 issues on this pull request.

View more on Code Climate.

@fsousac fsousac closed this Jul 22, 2024
@fsousac fsousac reopened this Jul 22, 2024
@caio-felipee
Copy link
Collaborator

Boa tarde! Muito obrigado pela contribuição.

Vejo que o Codecov falha, sendo um dos seguintes erros:

ERROR: test_ct4_same_schedule_except (utils.tests.test_valid_schedule.ScheduleGeneratorTestCase.test_ct4_same_schedule_except)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/unittest/mock.py", line 1372, in patched
    with self.decoration_helper(patched,
  File "/usr/local/lib/python3.11/contextlib.py", line 137, in __enter__
    return next(self.gen)
           ^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/unittest/mock.py", line 1354, in decoration_helper
    arg = exit_stack.enter_context(patching)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/contextlib.py", line 505, in enter_context
    result = _enter(cm)
             ^^^^^^^^^^
  File "/usr/local/lib/python3.11/unittest/mock.py", line 1427, in __enter__
    self.target = self.getter()
                  ^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/pkgutil.py", line 700, in resolve_name
    mod = importlib.import_module(modname)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line [114](https://github.com/unb-mds/2023-2-SuaGradeUnB/actions/runs/10049869313/job/28953461582?pr=225#step:5:115)0, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'schedules'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants