-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.codiumai.toml
97 lines (87 loc) · 2.61 KB
/
.codiumai.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
##
# Codium AI Config for Codiumate
#
# This .codiumai.toml file is a template for codiumAI
# configuration. Place it in the top directory for global use,
# or in a specific folder for local use.
#
# Based on https://docs.codium.ai/config/
#
# Config file precendence:
#
# .codium.local.toml > .codium.toml
#
# In this example, the configuration for Module A will come
# from the local file first, followed by its .codium.toml
# file, and finally the global configuration. Module B will
# only use the global configuration.
#
# /Project home
# │ ├── /src
# │ │ ├── /module A
# │ │ │ ├── component_1
# │ │ │ │ ├── .codium.local.toml
# │ │ │ │ └── .codium.toml
# │ │ │ │
# │ │ │ └── component_2
# │ │ │ └── .codium.toml
# │ │ │
# │ │ └── /module B
# | |
# └── .codium.toml # (AKA the "global" or "project" config)
#
[tests]
use_mocks = false
num_desired_tests = 4
is_add_test_to_suite = true
reference_test = """
# 2024-06-03
from afbcore.serializers import UserSerializer
from django.contrib.auth import get_user_model
from django.contrib.auth.hashers import check_password
from rest_framework import status
from rest_framework.test import APITestCase
"""
# A multiline string, delimited with triple-quotes (""")
# serving as an extra instruction that the AI model will
# consider. This will appear as "General instructions" in
# the configuration section in the tests panel.
#
# plan_instructions = """
# Possible values are:
#
# Python: Pytest, Unittest
#
# JS/TS: Jest, Mocha, Vitest, Karma, Jasmine, QUnit,
# React Testing Library. For running tests with
# Codium, only Jest, Mocha, Vitest, and React
# Testing Library.
#
# framework = "Mocha"
# An additional Javascript utility library used to test
# your code, if any.
#
# Possible values are None, Testing Library, Enzyme, or
# Chai. Not applicable to Python projects.
#
# utility_library = "Chai"
# A hint to the test generator about whether to use mocks
# or not. Possible values are true or false.
#
# use_mocks = false
# How many tests should be generated by default. Fewer
# tests is faster. Does not apply at the moment to
# extend-suite tests.
#
# num_desired_tests = 2
# If you already have a test for this function/class you
# can put it here as a template. Here's an example:
#
# reference_test = """
# describe("something", () => {
# it("says 'bar'", () => {
# const res = something.say();
# expect(res).toBe("bar");
# });
# });
# """